package com.letoken.platform.repo.mall.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 店铺订单，账单流水表，消费这和商家公用
 * </p>
 *
 * @author author
 * @since 2023-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_mall_order_info")
@ApiModel(value="AppMallOrderInfo对象", description="店铺订单，账单流水表")
public class AppMallOrderInfo extends Model<AppMallOrderInfo> implements Serializable  {


    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    @ApiModelProperty(value = "店铺id")
    private Integer mallId;

    @ApiModelProperty(value = "消费金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "消费金额cap金额")
    @TableField("amountCAP")
    private BigDecimal amountCAP;

    @ApiModelProperty(value = "0.待评价 1已评价")
    private Integer state;

    @ApiModelProperty(value = "1.交易，2.提现")
    private Integer type;

    @ApiModelProperty(value = "收入:1 支出:2")
    private Integer inOut;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "手续费/折损")
    private BigDecimal fee;

    @ApiModelProperty(value = "唯一流水号")
    private String seqNo;

    @ApiModelProperty(value = "让利值")
    private BigDecimal contributing;


    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
